package com.practice.backend.Entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user")
public class User {
    @Id
    private int id;
    @Column(name = "username")
    private String username;
    @Column(name = "password")
    private String password ="123456";
    @Column(name = "sex")
    private String sex = "0";
    @Column(name = "age")
    private int age;
    @JsonProperty("phone")
    @Column(name = "phone")
    private String phone;
    @Column(name = "rank_id")
    private String rankId = "2";
    @Column(name = "status")
    private String status = "0";

}
